<load target="js/contact_admin.js" />
<include target="header.html" />

<div cond="$XE_VALIDATOR_MESSAGE" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
	<p>{$XE_VALIDATOR_MESSAGE}</p>
</div>

<form action="./" method="post" ruleset="insertContact" id="fo_insert_contact" enctype="multipart/form-data">
<input type="hidden" name="act" value="procContactAdminInsertContact" />
<input type="hidden" name="page" value="{$page}" />
<input type="hidden" name="module_srl" value="{$module_info->module_srl}" />
<input cond="$mid || $module_srl" type="hidden" name="success_return_url" value="{getRequestUriByServerEnviroment()}" />
	<div class="table">
		<table cellspacing="0" class="rowTable">

		<input cond="$logged_info->is_admin!='Y'" type="hidden" name="contact_name" value="{$module_info->mid}" />
		<tr cond="$logged_info->is_admin=='Y'">
			<th scope="row"><div>{$lang->mid}</div></th>
			<td>
				<input type="text" name="contact_name" value="{$module_info->mid}" class="inputTypeText w200" />
				<p>{$lang->about_mid}</p>
			</td>
		</tr>
		<tr>
			<th scope="row"><div>{$lang->module_category}</div></th>
			<td>
				<select name="module_category_srl">
					<option value="0">{$lang->notuse}</option>
					<option loop="$module_category => $key,$val" value="{$key}" selected="selected"|cond="$module_info->module_category_srl==$key">{$val->title}</option>
				</select>
				<p>{$lang->about_module_category}</p>
			</td>
		</tr>

		<tr>
			<th scope="row"><div>{$lang->browser_title}</div></th>
			<td>
				<input type="text" name="browser_title" value="{htmlspecialchars($module_info->browser_title)}"  class="inputTypeText w400" id="browser_title"/>
				<a href="{getUrl('','module','module','act','dispModuleAdminLangcode','target','browser_title')}" onclick="popopen(this.href);return false;" class="buttonSet buttonSetting" title="{$lang->cmd_find_langcode}"><span>{$lang->cmd_find_langcode}</span></a>
				<p>{$lang->about_browser_title}</p>
			</td>
		</tr>

		<tr>
			<th scope="row"><div>{$lang->layout}</div></th>
			<td>
				<select name="layout_srl">
				<option value="0">{$lang->notuse}</option>
				<option loop="$layout_list => $key, $val" value="{$val->layout_srl}" selected="selected"|cond="$module_info->layout_srl==$val->layout_srl">{$val->title} ({$val->layout})</option>
				</select>
				<p>{$lang->about_layout}</p>
			</td>
		</tr>
		<tr>
			<th scope="row"><div>{$lang->skin}</div></th>
			<td>
				<select name="skin">
					<option loop="$skin_list => $key,$val" value="{$key}" selected="selected"|cond="$module_info->skin==$key ||(!$module_info->skin && $key=='xe_board')" >{$val->title}</option>
				</select>
				<p>{$lang->about_skin}</p>
			</td>
		</tr>
		<tr>
			<th scope="row"><div>{$lang->enable_terms}</div></th>
			<td>
				<input type="checkbox" name="enable_terms" value="Y" <!--@if($module_info->enable_terms=='Y' || !$module_info->module_srl)-->checked="checked"<!--@end--> />
				<p>{nl2br($lang->about_enable_terms)}</p>
			</td>
		</tr>
		<tr>
			<th scope="row"><div>{$lang->admin_mail}</div></th>
			<td>
				<input type="text" name="admin_mail" value="{$module_info->admin_mail}"  class="inputTypeText w400" />
				<p>{$lang->about_admin_mail}</p>
			</td>
		</tr>
		<tr>
			<th scope="col"><div>{$lang->interval}</div></th>
			<td>
				<input type="text" name="interval" value="{$module_info->interval}" class="inputTypeText" /> {$lang->unit_min}
				<p>{$lang->about_interval}</p>
			</td>
		</tr>
		<tr>
			<th scope="col"><div>{$lang->grant}</div></th>
			<td>
				<input type="radio" name="send_grant_all" value="Y" checked="checked"|cond="$module_info->send_grant_all== 'Y'" /> {$lang->grant_to_all}
				<input type="radio" name="send_grant_all" value="N" checked="checked"|cond="$module_info->send_grant_all!= 'Y'" /> {$lang->grant_to_login_user}
				<p>{$lang->about_interval}</p>
			</td>
		</tr>
		<tr>
			<th scope="row"><div>{$lang->description}</div></th>
			<td>
				<textarea name="description" class="inputTypeTextArea fullWidth" style="width:60%;height:100px">{htmlspecialchars($module_info->description)}</textarea>
				<p>{$lang->about_description}</p>
			</td>
		</tr>
    </table>
	</div>
	<div class="btnArea">
		<span class="btn"><input type="submit" value="{$lang->cmd_registration}" accesskey="s" /></span>
		<span class="btn"><a href="{getUrl('act','dispContactAdminContent','module_srl','')}">{$lang->cmd_back}</a></span>
	</div>
</form>
